package org.example.marker.config;

import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

/**
 * @author Wills
 * @date 2020/5/26
 */
@Data
@Component
@RefreshScope
@EqualsAndHashCode
public class AppConfig {

    @Value("${uid.timeBits:30}")
    private int timeBits;

    @Value("${uid.workerBits:4}")
    private int workerBits;

    @Value("${uid.seqBits:13}")
    private int seqBits;

    @Value("${uid.appBits:5}")
    private int appBits;

    @Value("${uid.epochStr:2022-05-01}")
    private String epochStr;

    @Value("${batch.maxSize:1000}")
    private int maxBatchSize;

}
